<?php
require_once './cc.php';

$sql = "select * from usermiss";

$result = mysqli_query($conn,$sql);

$array = array();

while($data = mysqli_fetch_assoc($result)){
    $array[] = $data;
    // echo json_encode($array);

}
$result = array(
    'code'=>1,
    'msg'=>false,
    'data'=>$array
);
echo json_encode($result);